<link rel="stylesheet" href="~/css/table.css">

<table>

<table class="table">
    <form  asp-action="Index" method="get">
    <p>
        <label> <input type="text" name="oi" /></label>
        <input type="submit" value="查找" />
    </p>
   </form>

            <a asp-action="Add"  class="add">新增</a>

    <tr>
        <th>ID</th>
        <th>标题</th>
        <th>内容</th>
        <th>作者</th>
        <th>操作</th>
    </tr>
    
  @foreach(var item in @Model)
{  <tr>
    <td>@item.Id</td>
    <td>@item.Title</td>
    <td>@item.Content</td>
    <td>@item.Author</td>
    <td>
        
        <a asp-action="Edit" asp-route-id="@item.Id"> 编辑</a>
        <a asp-action="Delete"  asp-route-id="@item.Id" class="delete"> 删除</a>
    </td>
    </tr>
}
    
</table>